package com.ygq.train.business.service;

import com.ygq.train.business.domain.DailyTrain;
import com.ygq.train.business.domain.DailyTrainTicket;
import com.ygq.train.common.resp.PageResp;
import com.ygq.train.business.req.DailyTrainTicketQueryReq;
import com.ygq.train.business.req.DailyTrainTicketSaveReq;
import com.ygq.train.business.resp.DailyTrainTicketQueryResp;

import java.util.Date;
import java.util.List;


public interface DailyTrainTicketService {

     void save(DailyTrainTicketSaveReq req);

     PageResp<DailyTrainTicketQueryResp> queryList(DailyTrainTicketQueryReq req);

     void delete(Long id);

     List<DailyTrainTicketQueryResp> queryMine();

     void genDaily(DailyTrain dailyTrain, Date date, String trainCode);

     DailyTrainTicket selectByUnique(Date date, String trainCode, String start, String end);
}